module.exports = app => {
    const { mongoose } = app;
    const { Schema } = mongoose;
    const UserSchema = new Schema({
        nickName: {
            type: String,
        },
        gender: {
            type: Number
        },
        language: {
            type: String, default: 'zh_CN'
        },
        city: {
            type: String,
        },
        province: {
            type: String
        },
        country: {
            type: String
        },
        avatarUrl: {
            type: String
        }
    })
    return mongoose.model('User', UserSchema)
}